/**
 * 
 */
package com.redside.service.impl;

import java.util.List;

import com.redside.dao.BusinessDao;
import com.redside.model.Business;
import com.redside.service.BusinessManager;
import com.redside.view.BusinessAssociatorView;

/**
 * @author pchapman
 *
 */
public class BusinessManagerImpl extends GenericManagerImpl<Business,Long> implements
		BusinessManager {

	private BusinessDao dao;
	
	public BusinessManagerImpl(BusinessDao businessDao) {
		super(businessDao);
		this.dao=businessDao;
	}
	
	/* (non-Javadoc)
	 * @see com.redside.service.BusinessManager#findByAssociation(com.redside.view.BusinessAssociatorView)
	 */
	public List<Business> findByAssociation(BusinessAssociatorView business) {
		return dao.findByAssociation(business);
	}

	/* (non-Javadoc)
	 * @see com.redside.service.BusinessManager#findByCountyId(java.lang.Long)
	 */
	public List<Business> findByCountyId(String id) {
		return dao.findByCountyId(id);
	}

	/* (non-Javadoc)
	 * @see com.redside.service.BusinessManager#findByCountyIdSorted(java.lang.String, java.lang.String[])
	 */
	public List<Business> findByCountyIdSorted(String countyId,
			String[] sortOrder) {
		return findByCountyIdSorted(countyId, sortOrder);
	}
}
